<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>React</title>
    <script src="../build/react.js"></script>
    <script src="../build/react-dom.js"></script>
    <script src="../build/browser.min.js"></script>
  </head>
  <body>
    <div id="example"></div>
    <script type="text/babel">
      let MyTitle=React.createClass({
        propTypes:{
          title: React.PropTypes.number.isRequired,
        },

        render:function(){
          return <h1>{this.props.title}</h1>;
        }
      });

      let data=123;

      ReactDOM.render(
        <MyTitle title={data}></MyTitle>,
        document.getElementById('example')
      )
    </script>
  </body>
</html>
